Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prototype: Get ECID from kndctr cookie #1171

Closed
wants to merge 5 commits into from

Conversation

carterworks
Copy link
Contributor

@carterworks carterworks commented Aug 22, 2024

Important

This is a prototype and should not be merged into the main branch. It is a proof of concept and is meant to spark discussion and, potentially, inform a more formal implementation. This PR should be closed once the prototype is no longer needed.

Description

Uses protobuf.js to decode the kndctr_ORG_ID_identity cookie and extract the ECID. Prototypes a getEcidFromCookie command.

Related Issue

Motivation and Context

We (recently) had a meeting with the Express team where they expressed their frustration that the getIdentity call to retrieve an ECID can take a while, and they use the ECID as an identity in a third-party analytics solution. We advised them to either extract the ECID from the AMCV cookie, or to use an FPID. But it is possible to extract the ECID from the cookie. The cookie is a url-safe, url-encoded, base64 encoded, byte representation of a protocol buffer

Unfortnuately, protobuf.js adds significant bloat to the library. The minified version gains a whopping 15 KB in minzipped size for a total of 55.120 KB. This is a significant increase in size for a library that is already quite large.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (non-breaking change which does not add functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA or I'm an Adobe employee.
  • I have made any necessary test changes and all tests pass.
  • I have run the Sandbox successfully.

@carterworks carterworks marked this pull request as draft August 22, 2024 21:12
@carterworks carterworks deleted the prototype-read-ecid-from-cookie branch August 26, 2024 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant